package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

@Table(name = "e_audio")
public class EAudio extends BasePo {
	public static final String FIELD_ID = "id";
	public static final String FIELD_TITLE = "title";
	public static final String FIELD_SOURCES = "sources";
	public static final String FIELD_SKEY = "skey";
	public static final String FIELD_CREATETIME = "createTime";
	public static final String FIELD_UPDATETIME = "updateTime";
	public static final String FIELD_COVERURL = "coverUrl";
	public static final String FIELD_CREATEUSER = "createUser";
	public static final String FIELD_ENTITY = "entity";
	public static final String FIELD_PARENTID = "parentId";
	public static final String FIELD_SORT = "sort";
	public static final String FIELD_SUMMARY = "summary";
	public static final String FIELD_INFO = "info";
	public static final String FIELD_PLAYTIME = "playtime";
	public static final String FIELD_STATUS = "status";
	public static final String FIELD_PROGRESSSTATUS = "progressStatus";
	public static final String FIELD_TUDOUCODE = "tudouCode";
	public static final String FIELD_COPYPUBLISHTIME = "copyPublishTime";
	public static final String FIELD_COPYWEBSITENAME = "copyWebsiteName";
	public static final String FIELD_COPYWEBSITEURL = "copyWebsiteUrl";

	public static final String COLUMN_ID = "id";
	public static final String COLUMN_TITLE = "title";
	public static final String COLUMN_SOURCES = "sources";
	public static final String COLUMN_S_KEY = "s_key";
	public static final String COLUMN_CREATE_TIME = "create_time";
	public static final String COLUMN_UPDATE_TIME = "update_time";
	public static final String COLUMN_COVER_URL = "cover_url";
	public static final String COLUMN_CREATE_USER = "create_user";
	public static final String COLUMN_ENTITY = "entity";
	public static final String COLUMN_PARENT_ID = "parent_id";
	public static final String COLUMN_SORT = "sort";
	public static final String COLUMN_SUMMARY = "summary";
	public static final String COLUMN_INFO = "info";
	public static final String COLUMN_PLAYTIME = "playtime";
	public static final String COLUMN_STATUS = "status";
	public static final String COLUMN_PROGRESS_STATUS = "progress_status";
	public static final String COLUMN_TUDOU_CODE = "tudou_code";
	public static final String COLUMN_COPY_PUBLISH_TIME = "copy_publish_time";
	public static final String COLUMN_COPY_WEBSITE_NAME = "copy_website_name";
	public static final String COLUMN_COPY_WEBSITE_URL = "copy_website_url";

	public static final String ORDER_SORT_DESC = " sort desc ";

	/**
	 * 主键id
	 */
	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;

	/**
	 * 音频标题
	 */
	private String title;

	/**
	 * 拥有的播放源类型 如1080P_mp4,720P_avi等 前面是分辨率 后面是音频类型
	 */
	private String sources;

	/**
	 * 播放地址key
	 */
	@Column(name = "s_key")
	private String skey;

	/**
	 * 创建时间
	 */
	@Column(name = "create_time")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@Column(name = "update_time")
	private Date updateTime;

	@Column(name = "status")
	private Short status;

	/**
	 * 封面地址
	 */
	@Column(name = "cover_url")
	private String coverUrl;

	/**
	 * 创建用户
	 */
	@Column(name = "create_user")
	private Long createUser;

	/**
	 * 是否是实体 0否 1是
	 */
	private Short entity;

	/**
	 * 父id
	 */
	@Column(name = "parent_id")
	private Long parentId;

	/**
	 * 播放时间
	 */
	private Long playtime;

	/**
	 * 排序
	 */
	private Double sort;

	/**
	 * 简介
	 */
	private String summary;
	/**
	 * 详细信息
	 */
	private String info;

	@Column(name = "progress_status")
	private Short progressStatus;

	@Column(name = "tudou_code")
	private String tudouCode;

	@Column(name = "copy_publish_time")
	private Date copyPublishTime;
	@Column(name = "copy_website_name")
	private String copyWebsiteName;
	@Column(name = "copy_website_url")
	private String copyWebsiteUrl;

	/**
	 * 获取主键id
	 * 
	 * @return id - 主键id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置主键id
	 * 
	 * @param id
	 *            主键id
	 */
	public void setId(Long id) {
		this.id = id;
	}

	public Date getCopyPublishTime() {
		return copyPublishTime;
	}

	public void setCopyPublishTime(Date copyPublishTime) {
		this.copyPublishTime = copyPublishTime;
	}

	public String getCopyWebsiteName() {
		return copyWebsiteName;
	}

	public void setCopyWebsiteName(String copyWebsiteName) {
		this.copyWebsiteName = copyWebsiteName;
	}

	public String getCopyWebsiteUrl() {
		return copyWebsiteUrl;
	}

	public void setCopyWebsiteUrl(String copyWebsiteUrl) {
		this.copyWebsiteUrl = copyWebsiteUrl;
	}

	/**
	 * 获取音频标题
	 * 
	 * @return title - 音频标题
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * 设置音频标题
	 * 
	 * @param title
	 *            音频标题
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getSkey() {
		return skey;
	}

	public void setSkey(String skey) {
		this.skey = skey;
	}

	/**
	 * 获取创建时间
	 * 
	 * @return create_time - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置创建时间
	 * 
	 * @param createTime
	 *            创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * 获取更新时间
	 * 
	 * @return update_time - 更新时间
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * 设置更新时间
	 * 
	 * @param updateTime
	 *            更新时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * 获取封面地址
	 * 
	 * @return cover_url - 封面地址
	 */
	public String getCoverUrl() {
		return coverUrl;
	}

	/**
	 * 设置封面地址
	 * 
	 * @param coverUrl
	 *            封面地址
	 */
	public void setCoverUrl(String coverUrl) {
		this.coverUrl = coverUrl;
	}

	/**
	 * 获取创建用户
	 * 
	 * @return create_user - 创建用户
	 */
	public Long getCreateUser() {
		return createUser;
	}

	/**
	 * 设置创建用户
	 * 
	 * @param createUser
	 *            创建用户
	 */
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	public String getSources() {
		return sources;
	}

	public void setSources(String sources) {
		this.sources = sources;
	}

	public Short getEntity() {
		return entity;
	}

	public void setEntity(Short entity) {
		this.entity = entity;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Double getSort() {
		return sort;
	}

	public void setSort(Double sort) {
		this.sort = sort;
	}

	public Long getPlaytime() {
		return playtime;
	}

	public void setPlaytime(Long playtime) {
		this.playtime = playtime;
	}

	public Short getStatus() {
		return status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

	public Short getProgressStatus() {
		return progressStatus;
	}

	public void setProgressStatus(Short progressStatus) {
		this.progressStatus = progressStatus;
	}

	public String getTudouCode() {
		return tudouCode;
	}

	public void setTudouCode(String tudouCode) {
		this.tudouCode = tudouCode;
	}

}